package com.huawei.fastengine.fastview.download.utils.log;

import com.huawei.hwid.core.constants.HwAccountConstants;
import o.efx;

public enum LogLevel {
    ERROR(HwAccountConstants.EXTRA_OPLOG_ERROR, 0, 6),
    WARN("warn", 1, 5),
    INFO("info", 2, 4),
    DEBUG("debug", 3, 3),
    VERBOSE("verbose", 4, 2),
    ALL("debug", 5, 3),
    OFF(efx.PUSH_OFF, 6, 3);
    
    String name;
    int priority;
    int value;

    private LogLevel(String str, int i, int i2) {
        this.name = str;
        this.value = i;
        this.priority = i2;
    }

    public int compare(LogLevel logLevel) {
        return this.value - logLevel.value;
    }

    public int getPriority() {
        return this.priority;
    }
}
